package com.woniuxy.controller;


import com.woniuxy.commons.utile.Result;
import com.woniuxy.service.UserProjectAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 项目人员-区域关系表  项目人员表附表  前端控制器
 * </p>
 *
 * @author Keep it simple
 * @since 2022-06-28
 */
@RestController
@Api(tags = "维修区域接口")
@RequestMapping("/userProjectArea")
public class UserProjectAreaController {

    @Resource
    UserProjectAreaService userProjectAreaService;

    @GetMapping("/getRepairerByAreaId")
    @ApiOperation("根据区域id查询有哪些维修工")
    public Result getRepairerByAreaId(Integer id){

        Result result = userProjectAreaService.getRepairerByAreaId(id);
        return result;
    }
}

